package com.day0009;
//职工
public class Clerk extends Employee{
    private Manager manager;

    public Clerk() {
    }

    public Clerk(String name, String workId, String depart) {
        super(name, workId, depart);

    }

    @Override
    public void showMsg() {
        super.showMsg();
        System.out.println("他的经理是"+manager.getName());
    }

    public Manager getManager() {
        return manager;
    }

    public void setManager(Manager manager) {
        this.manager = manager;
    }
}
